<template>
  <el-aside width="200px">
    <el-row class="tac">
      <el-col :span="24">
        <el-menu
            router
            default-active="this.$router.path"
            class="el-menu-vertical-demo"
            background-color="#545c64"
            text-color="#fff"
            active-text-color="#ffd04b">

          <el-menu-item index="/root_index/root_adminadd">
            <i class="el-icon-menu"></i>
            <span slot="title">添加管理员</span>
          </el-menu-item>
          <el-menu-item index="/root_index/AdminInfo">
            <i class="el-icon-menu"></i>
            <span slot="title">管理员信息管理</span>
          </el-menu-item>



          <el-menu-item index="/root_admin">
            <i class="el-icon-setting"></i>
            <span slot="title"  @click="remove">退出登录</span>
          </el-menu-item>
        </el-menu>
      </el-col>
    </el-row>
  </el-aside>
</template>

<script>
export default {
  name: "root_aside",
  methods:{
    remove (){
      window.sessionStorage.removeItem("token");
    }
  },

}
</script>

<style scoped>
.el-aside {
  background-color: #545c64;
  color: #333;
  text-align: center;
  line-height: 200px;
  height: 735px;
}
</style>